encodesymbolic: handle circle objects
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 21 Sep 2016 15:46:19 +0000 (17:46 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 21 Sep 2016 15:46:19 +0000 (17:46 +0200)
add circle objects to the injected style for recoloring.
Should avoid randomly colored symbolic icon bits when circles are
in the mix as in network-vpn-acquiring-symbolic for example.

gtk/encodesymbolic.c

index 5ff5e1b9822fad5251cf03311c07f81cc4750d61..42e8d9c93648acaab76b93ce5fd8c23f611b2b1b 100644 (file)
@@ -88,7 +88,7 @@ load_symbolic_svg (char *file_data, gsize file_len,
                       "     width=\"", svg_width, "\"\n"
                       "     height=\"", svg_height, "\">\n"
                       "  <style type=\"text/css\">\n"
-                      "    rect,path {\n"
+                      "    rect,circle,path {\n"
                       "      fill: ", css_fg," !important;\n"
                       "    }\n"
                       "    .warning {\n"